package com.fit.beans;

import java.util.LinkedList;
import java.util.List;

import com.fit.interfaces.Borrow;
import com.fit.interfaces.Car;
import com.fit.interfaces.Damage;
import com.fit.interfaces.Driver;
import com.fit.interfaces.Employer;
import com.fit.interfaces.RecordDamage;
import com.fit.service.BorrowUniqueID;
import com.fit.service.Borrows;
import com.fit.service.RecordDamages;

public class RecordDamageBean implements RecordDamage {

	private String recordDamageId;
	
	private String comment;
	
	private Borrow borrow;

	private Damage damage;
	


	public String getRecordDamageId() {
		return recordDamageId;
	}

	public void setRecordDamageId(String recordDamageId) {
		this.recordDamageId = recordDamageId;
	}

	/* (non-Javadoc)
	 * @see com.fit.beans.RecordDamage#getComment()
	 */
	public String getComment() {
		return comment;
	}

	/* (non-Javadoc)
	 * @see com.fit.beans.RecordDamage#setComment(java.lang.String)
	 */
	public void setComment(String comment) {
		this.comment = comment;
	}

	/* (non-Javadoc)
	 * @see com.fit.beans.RecordDamage#getBorrow()
	 */
	public Borrow getBorrow() {
		return borrow;
	}

	/* (non-Javadoc)
	 * @see com.fit.beans.RecordDamage#setBorrow(com.fit.interfaces.Borrow)
	 */
	public void setBorrow(Borrow borrow) {
		this.borrow = borrow;
	}
	public void executeDamages(Damage dam,String comment, Borrow borrow ){
		setRecordDamageId(BorrowUniqueID.getBorrowUniqueID());
		
		setBorrow(borrow);
		setDamage(dam);
		setComment(comment);
		
		
	}

	public Damage getDamage() {
		// TODO Auto-generated method stub
		return damage;
	}

	public void setDamage(Damage damage) {
		// TODO Auto-generated method stub
		this.damage = damage;
	}
	
}
